package com.glorious.api;

import com.glorious.common.Result;
import com.glorious.entities.OauthClientDetails;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "glorious-system", contextId = "oauth-client")
public interface OAuthClientFeignClient {

    @GetMapping("/api/client/oauth-clients/{clientId}")
    Result<OauthClientDetails> getOAuthClientById(@PathVariable("clientId") String clientId);
}
